package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Goods implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer goodsId; //商品编号
    private Integer culId; //文化遗产编号
    private Integer manuId; //制造商编号 默认为NULL

    private String detail; //详情
    private String keyword; //关键字
    private String sort; //分类

    private Integer authorize; //是否已经授权上架
    private Integer evaluate; //评分

    private String cover; //封面图

    private Float coverPrice; //封面商品价格

    private String introduction; //商品简介

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
